package com.wen.open.springframework.test.event;

import com.wen.open.springframework.context.event.ApplicationContextEvent;

/**
 * @author Wen
 * @date 2023/4/26 09:58
 */
public class CustomEvent extends ApplicationContextEvent {

    private String msg;
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public CustomEvent(Object source, String msg) {
        super(source);
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }
}
